<?php
// config/servers.php
// This file denotes connection information to use for each server, such as IP's, database names, and various settings related to such
// Notes are after each individual setting.
// If you need to duplicate anything (add another server), please read the docs.

$servers = array(
	'1'	=>	array(									// ID of the server.
		'ServerName'		=>	"MyRO",				// Name of this server.
		'LoginServer'		=>	1,					// Server ID in which this server gets all of its Login Server stuff from (login table, Login IP's, etc). If this is set to something 
													// other than the ID of the server in it's parent, all Login information will be ignored in this server.
		'LoginIP'			=>	"127.0.0.1",		// IP of the Login Server. 
		'LoginPort'			=>	6900,				// Port Number of the Login Server.
		'CharIP'			=>	"127.0.0.1",		// IP of the Character Server.
		'CharPort'			=>	6121,				// Port Number of the Character Server.
		'MapIP'				=>	"127.0.0.1",		// IP of the Map Server.
		'MapPort'			=>	5121,				// Port Number of the Map Server.
		'DBIP'				=>	"127.0.0.1",		// IP of the MySQL Database.
		'DBPort'			=>	3306,				// Port Number of the MySQL database (default = 3306).
		'DBLogin'			=>	'ragnarok',			// Login Username of MySQL Database.
		'DBPass'			=>	'ragnarok',			// Login Password of MySQL Database.
		'LoginDB'			=>	'ragnarok',			// What DB name is the login server reading from (aka where should new accounts go)?
		'CharMapDB'			=>	'ragnarok',			// what DB name is the char/map server reading from (aka where should the characters be read from)?
		'ShowStatus'		=>	1,					// Monitor the status of this server (shows online/offline, number of users)? 1=yes, 0=no
		'WoE'				=>	array(				// Set WoE (War of Emperium) times here and whether we want to monitor it through the CP
		// First parameter: Starting day (0 = Sunday, 1 = Monday, 2 = Tuesday, etc.)
		// Second Parameter: Startimg Time, in 24 hour format.
		// Third Parameter: Ending Day (0 = Sunday, 1 = Monday, 2 = Tuesday, etc.)
		// Fourth Parameter: Ending Time, in 24 hour format.
		// NOTE: Invalid times and days are ignored silently.
			'WoEDateTimes'	=>	array(
				// array(0, '12:00', 0, '15:00'), 	//Example: Starts Sunday at noon and ends Sunday at 3:00pm.
				// array(4, '16:00', 4, '18:00')		//Example: Starts Thursday at 4:00pm and ends Thursday at 6:00pm.
			),
			'WoEDisallow'	=>	array(
			// Pages to prevent access to during WoE.
				array(''),
				array('')
			),
		),
		'ShowWoE'			=>	0,					// Monitor the Status of WoE (on/off status).
	), 	// MystCP Features the ability to use multiple char/Map server combinations with one login server, AND the ability to use multiple login/char/map servers with one installation.
		// Simply remove the /* */ below to enable this feature and fill out the details.
	/*
	'2'	=>	array(									// ID of the server.
		'ServerName'		=>	"MyRO",				// Name of this server.
		'LoginServer'		=>	1,					// Server ID in which this server gets all of its Login Server stuff from (login table, Login IP's, etc). If this is set to something 
													// other than the ID of the server in it's parent, all Login information will be ignored in this server.
		'LoginIP'			=>	"127.0.0.1",		// IP of the Login Server. 
		'LoginPort'			=>	6900,				// Port Number of the Login Server.
		'CharIP'			=>	"127.0.0.1",		// IP of the Character Server.
		'CharPort'			=>	6121,				// Port Number of the Character Server.
		'MapIP'				=>	"127.0.0.1",		// IP of the Map Server.
		'MapPort'			=>	5121,				// Port Number of the Map Server.
		'DBIP'				=>	"127.0.0.1",		// IP of the MySQL Database.
		'DBPort'			=>	3306,				// Port Number of the MySQL database (default = 3306).
		'DBLogin'			=>	"ragnarok",			// Login Username of MySQL Database.
		'DBPass'			=>	"ragnarok",			// Login Password of MySQL Database.
		'DBName'			=>	"ragnarok",			// Database Name of the MySQL Database.
		'ShowStatus'		=>	0,					// Monitor the status of this server (shows online/offline, number of users)? 1=yes, 0=no
		'WoE'				=>	array(				// Set WoE (War of Emperium) times here and whether we want to monitor it through the CP
		// First parameter: Starting day (0 = Sunday, 1 = Monday, 2 = Tuesday, etc.)
		// Second Parameter: Startimg Time, in 24 hour format.
		// Third Parameter: Ending Day (0 = Sunday, 1 = Monday, 2 = Tuesday, etc.)
		// Fourth Parameter: Ending Time, in 24 hour format.
		// NOTE: Invalid times and days are ignored silently.
			'WoEDateTimes'	=>	array(
				// array(0, '12:00', 0, '15:00'), 	//Example: Starts Sunday at noon and ends Sunday at 3:00pm.
				// array(4, '16:00', 4, '18:00')		//Example: Starts Thursday at 4:00pm and ends Thursday at 6:00pm.
			),
			'WoEDisallow'	=>	array(
			// Pages to prevent access to during WoE.
				array(''),
				array('')
			),
		),
		'ShowWoE'			=>	0,					// Monitor the Status of WoE (on/off status).
	), */
);
	